package com.iyimo.manager
{
	import flash.display.Sprite;

	public class LayerManager{
		private var _popLayer:Sprite;
		private var _loaderLayer:Sprite;
		private var _uiLayer:Sprite;
		private var _gameLayer:Sprite;
		private var _gameUiLayer:Sprite;
		
		public function LayerManager(){
		}
		
		public function init(root:Sprite):void{
			_gameUiLayer = new Sprite();
			root.addChild(_gameUiLayer);
			
			_gameLayer = new Sprite();
			root.addChild(_gameLayer);
			
			_uiLayer = new Sprite();
			root.addChild(_uiLayer);
			
			_loaderLayer = new Sprite();
			root.addChild(_loaderLayer);
			
			_popLayer = new Sprite();
			root.addChild(_popLayer);
		}

		/**
		 * 放置loading信息
		 */		
		public function get loaderLayer():Sprite{
			return _loaderLayer;
		}

		/**
		 * ui层
		 */		
		public function get uiLayer():Sprite{
			return _uiLayer;
		}

		/**
		 * 游戏层
		 */		
		public function get gameLayer():Sprite{
			return _gameLayer;
		}

		public function get gameUiLayer():Sprite{
			return _gameUiLayer;
		}
		
		/**
		 * 弹出层
		 */		
		public function get popLayer():Sprite{
			return _popLayer;
		}
	}
}